package com.example.notepad.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class DBUtils {
    public static final String DATABASE_NAME = "notepad";
    public static final String TABLE_NAME = "note";
    public static final int DATABASE_VERSION = 1;

    public static final String NOTEPAD_ID = "_id";
    public static final String NOTEPAD_CONTENT = "content";
    public static final String NOTEPAD_TIME = "notetime";

    public static String getTime() {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss", Locale.CHINA);
        Date date = new Date(System.currentTimeMillis());
        return simpleDateFormat.format(date);
    }
}
